<div class="admin_left actions">
    <h3 style="font-size:20px;">Manage more</h3>
	<ul>
		<li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('Edit Consigner'), array('action' => 'edit', $consigner['Consigner']['name']),array('class' => 'consistentButton2')); ?> </li>
        <li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('New Consigner'), array('action' => 'add'),array('class' => 'consistentButton2')); ?> </li>
		<li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('List Consigners'), array('action' => 'index'),array('class' => 'consistentButton2')); ?> </li>
	    <li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('List Suppliers'), array('controller' => 'suppliers', 'action' => 'index'),array('class' => 'consistentButton2')); ?> </li>
	    <li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('List Consignments'), array('controller' => 'consignments', 'action' => 'index'),array('class' => 'consistentButton2')); ?> </li>
        <li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('New Consignment'), array('controller' => 'consignments', 'action' => 'add'),array('class' => 'consistentButton2')); ?> </li>
	</ul>
</div>


<div id="pinkHeader" class="admin_right consigners form">

    <div id=breadcrumbAdmin>
            <?php $this->Html->addCrumb('Consigners', '/Consigners/index'); ?>
            <?php $this->Html->addCrumb('View', '/Consigners/view', array('style'=> ('text-decoration:underline;  color:#EB1E70;'))); ?>
            <?php echo $this->Html->getCrumbs(' > ', array( 'text' => 'Contacts', 'url' => array('controller' => 'suppliers', 'action' => 'index'), 'escape' => false)); ?>
    </div>

    <h2><?php  echo __('Consigner'); ?></h2>
    <table cellpadding="0" cellspacing="0" class=" table table-bordered table-hover">

     		<tr>
     			<th><?php echo __('Id'); ?></th>
     			<th><?php echo __('Name'); ?></th>
     			<th><?php echo __('Email'); ?></th>
     			<th><?php echo __('Phone'); ?></th>
     			<th><?php echo __('Address'); ?></th>
     			<th><?php echo __('Note'); ?></th>
     			&nbsp;
     		</tr>

     		<tr>
     			<td>
     				<?php echo h($consigner['Consigner']['id']); ?>
     				&nbsp;
     			</td>

     			<td>
     				<?php echo h($consigner['Consigner']['name']); ?>
     				&nbsp;
     			</td>

     			<td>
     				<?php echo h($consigner['Consigner']['email']); ?>
     				&nbsp;
     			</td>

     			<td>
     				<?php echo h($consigner['Consigner']['phone']); ?>
     				&nbsp;
     			</td>

     			<td>
                    <?php echo h($consigner['Consigner']['address']); ?>
                    &nbsp;
                </td>

                <td>
                   <?php echo h($consigner['Consigner']['note']); ?>
                    &nbsp;
                </td>
     		</tr>
    </table>


    <div style="border-top:solid 1px; margin-top:10%;" class="related">
	    <h4><?php echo __('Related Consignments'); ?></h4>
        <?php if (!empty($consigner['Consignment'])): ?>
            <table cellpadding = "0" cellspacing = "0" class="table table-striped table-bordered">
                <tr>
                    <th><?php echo __('Id'); ?></th>
                    <th><?php echo __('Date'); ?></th>
                    <th><?php echo __('Item name'); ?></th>
                    <th><?php echo __('Consigner Id'); ?></th>
                    <th><?php echo __('Note'); ?></th>
                    <th class="actions"><?php echo __('Actions'); ?></th>
                </tr>
                <?php
                    $i = 0;
                    foreach ($consigner['Consignment'] as $consignment): 
					?>
                    <tr>
                        <td><?php echo $consignment['id']; ?></td>
                        <td><?php echo $consignment['date']; ?></td>
                        <td><?php echo $items[$i]; ?></td>
                        <td><?php echo $consignment['consigner_id']; ?></td>
                        <td><?php echo $consignment['note']; ?></td>
                        <td class="actions">
                            <?php echo $this->Html->link(__('View'), array('controller' => 'consignments', 'action' => 'view', $consignment['id'])); ?>
                            <?php echo $this->Html->link(__('Edit'), array('controller' => 'consignments', 'action' => 'edit', $consignment['id'])); ?>
                            <?php echo $this->Form->postLink(__('Delete'), array('controller' => 'consignments', 'action' => 'delete', $consignment['id']), null, __('Are you sure you want to delete # %s?', $consignment['id'])); ?>
                        </td>
                    </tr>
                <?php $i++; endforeach; ?>
            </table>
        <?php endif; ?>
    </div>
</div>

